.earn-container {
    padding: 6rem 1rem 7rem;
    min-height: 100vh;
    box-sizing: border-box;
    background: url("../images/earn_bg.png");
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-color: #befbc2;

    .total-box {
        aspect-ratio: 7/4;

        .item-box {
            @include flex-center-start();
            // aspect-ratio: 5/1;
            width: 100%;
            height: 6.6rem;
            padding: 0 2rem;
            box-sizing: border-box;
            background: url("../images/earn_bar.png");
            background-size: 100% 100%;
            background-repeat: no-repeat;
            background-position: center center;
            font-size: 1.4rem;

            &:nth-child(2) {
                margin-top: -1.1rem;
            }

            &:nth-child(3) {
                margin-top: -1.1rem;
            }

            .name {
                padding-right: .4rem;
                color: $purpleFontTwo;
            }

            .num {
                font-size: 1.8rem;
                font-weight: bold;
                color: #000;

                &.red {
                    color: $redFont;
                }
            }

            .unit {
                flex: 1;
                padding-left: .4rem;
                font-weight: bold;
                color: $purpleFontTwo;

                &.red {
                    color: $redFont;
                }
            }

            .arrow {
                width: 2rem;
                height: 2rem;

                img {
                    width: 100%;
                    height: 100%;
                }
            }

            &.min-item-box {
                .min-item {
                    flex: 1;
                    font-size: .9rem;

                    &:nth-child(1) {
                        border-right: 1px solid #8c54db;
                    }

                    &:nth-child(2) {
                        padding-left: 1.4rem;
                        border-left: 1px solid #ede4f9;
                    }

                    .num {
                        font-size: 1.2rem;
                    }
                }

            }
        }
    }

    .mining-run {
        @include flex-center-center();

        .btn {
            padding: .2rem;
            width: 18rem;
            height: 6rem;
            line-height: 5.6rem;
            text-align: center;
            background: url("../images/earn_run_btn.png");
            background-size: 100% 100%;
            background-repeat: no-repeat;
            background-position: center center;
            font-size: 2rem;
            font-weight: bold;
            color: #fff;
            text-shadow: 0 2px 2px #a84f01;

            &.runing {
                @include flex-center-center();
                flex-direction: column;
                line-height: 1.6rem;
                filter: grayscale(1);

                .name {
                    font-size: 1.8rem;
                }

                .countdown-box {
                    margin-top: .4rem;
                    padding: 0 1rem;
                    height: 1.8rem;
                    line-height: 1.8rem;
                    text-align: center;
                    border-radius: .9rem;
                    font-size: 1rem;
                    font-weight: normal;
                    background-color: #454545;
                }
            }
        }
    }

    .earn-bottom-box {
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 2.4rem;
        background: linear-gradient(to bottom, #ab76fe, #1aefee);
        box-shadow: 0 .2rem .6rem 0 rgba(95, 95, 95, .4);

        .form-box {
            overflow: hidden;
            border-radius: 2.4rem;
            background-color: #fff;
            box-shadow: 0 .2rem .6rem 0 rgba(95, 95, 95, .4);

            .approve-box {
                padding: 2rem 2rem 1rem;
                @include flex-center-around();
                font-size: 1rem;
                color: $purpleFontOne;

                .left-box {
                    .name {
                        font-size: 1rem;
                    }

                    .value {
                        font-size: 1.4rem;
                        color: $redFont;
                    }
                }

                .right-box {
                    @include flex-center-center();
                    font-size: 1rem;
                }
            }

            .input-box {
                @include flex-center-start();
                padding: 0 2rem;

                input {
                    flex: 1;
                    height: 3.7rem;
                    border-radius: 2rem 0 0 2rem;
                    padding: 0 1rem;
                    border: none;
                    background: linear-gradient(to bottom, #b29fcd 0, #e1d5f2 50%, #d9c4f6 100%);
                    outline: none;
                    &::placeholder {
                        font-size: 1rem;
                        color: #9984B9;
                    }
                }

                .btn {
                    width: 5rem;
                    height: 4.2rem;
                    padding-right: 1rem;
                    line-height: 4.2rem;
                    text-align: center;
                    font-size: 1.2rem;
                    color: #fff;
                    background: url("../images/earn_right_btn.png");
                    background-size: 100% 100%;
                    background-repeat: no-repeat;
                    background-position: -4px center;
                }
            }

            .submit-box {
                @include flex-center-center();
                padding: 1rem;

                .btn {
                    @include flex-center-center();
                    flex-direction: column;
                    width: 13rem;
                    height: 5rem;
                    background: url("../images/home_btn_2.png");
                    background-size: 100% 100%;
                    background-repeat: no-repeat;

                    .title {
                        font-size: 1.6rem;
                        font-weight: bold;
                        color: #FFF0E2;
                        text-shadow: 0 2px 2px #a84f01;
                    }
                }
            }
        }

        .introduce-box {
            margin-top: 1rem;

            .tab-box {
                font-size: 1.6rem;
                font-weight: bold;
                color: #007372;
            }

            .introduce {
                padding: 1rem;
                font-size: 1.2rem;
                line-height: 2rem;
                color: #007372;

                .inner-box {
                    padding: 1.2rem;
                    border-radius: 2.4rem;
                    border: dotted 4px #d5d6d6;
                }
            }
        }
    }

}